package edu.hit.database.pojo;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

/**
 * Book entity. @author MyEclipse Persistence Tools
 */

public class Book implements java.io.Serializable {

	// Fields

	private String isbn;
	private Image image;
	private BookType bookType;
	private String bname;
	private BigDecimal bprice;
	private String press;
	private BigDecimal version;
	private Set orderDetails = new HashSet(0);
	private Set saleTables = new HashSet(0);

	// Constructors

	/** default constructor */
	public Book() {
	}

	/** minimal constructor */
	public Book(String isbn, Image image, BookType bookType, String bname,
			BigDecimal bprice, String press, BigDecimal version) {
		this.isbn = isbn;
		this.image = image;
		this.bookType = bookType;
		this.bname = bname;
		this.bprice = bprice;
		this.press = press;
		this.version = version;
	}

	/** full constructor */
	public Book(String isbn, Image image, BookType bookType, String bname,
			BigDecimal bprice, String press, BigDecimal version,
			Set orderDetails, Set saleTables) {
		this.isbn = isbn;
		this.image = image;
		this.bookType = bookType;
		this.bname = bname;
		this.bprice = bprice;
		this.press = press;
		this.version = version;
		this.orderDetails = orderDetails;
		this.saleTables = saleTables;
	}

	// Property accessors

	public String getIsbn() {
		return this.isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public Image getImage() {
		return this.image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

	public BookType getBookType() {
		return this.bookType;
	}

	public void setBookType(BookType bookType) {
		this.bookType = bookType;
	}

	public String getBname() {
		return this.bname;
	}

	public void setBname(String bname) {
		this.bname = bname;
	}

	public BigDecimal getBprice() {
		return this.bprice;
	}

	public void setBprice(BigDecimal bprice) {
		this.bprice = bprice;
	}

	public String getPress() {
		return this.press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public BigDecimal getVersion() {
		return this.version;
	}

	public void setVersion(BigDecimal version) {
		this.version = version;
	}

	public Set getOrderDetails() {
		return this.orderDetails;
	}

	public void setOrderDetails(Set orderDetails) {
		this.orderDetails = orderDetails;
	}

	public Set getSaleTables() {
		return this.saleTables;
	}

	public void setSaleTables(Set saleTables) {
		this.saleTables = saleTables;
	}

}